﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <meta name="verify-v1" content="6i/N6+rlQ/L2Ro4akvocmVo22ayXRZ2WbpdVkxtzuwM=" />
  <meta name="y_key" content="107d857063b8f9ec" />
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="Content-Style-Type" content="text/css; charset=UTF-8" />
  <meta http-equiv="keywords" content="" />
  <meta http-equiv="description" content="" />
  <link rel="shortcut icon" href="/eng/favicon.ico" />
  <link rel="start" href="/eng/index.html" title="<bean:message key="cstp100.001"/>" />
  <link rel="help" href="/eng/sitemap/index.html" title="<bean:message key="cstp100.002"/>" />
  <title><bean:message key="cstp100.000"/></title>
  <%@ include file="../common/common_css.jsp" %>
  <%@ include file="../common/common_js.jsp" %>
  <%@ include file="../common/menuLink.jsp" %>
  <script type="text/javascript" src="${f:url('/js/menu.js')}"></script>
  <script language="JavaScript">
  <!--
    // 初期表示
  function func_load(){
  // オートコンプリート無効化
   var reFlag = '${returnFlag}';
    if( reFlag == '1' ){
      setTimeout('func_back()');
    }else{
      func_disabled_auto_complete();
    }
  }

  // Uploadボタン
  function func_Upload(){
  var f = document.forms[0];
    f.action = "${f:url('/csde/csde401/upload/')}";
    f.submit();
  }

  // Back ボタン
  function func_back(){
    var f = document.forms[0];
    f.action = "${f:url('/csde/csde301/')}";
    f.submit();
  }

  //-->
  </script>
</head>
<body onload="func_load();">
  <div id="screenMode">

    <div id="container">
      <a name="top" id="top"></a>

      <!-- header -->
      <%@ include file="../common/header.jsp" %>

      <div id="maincontents" class="clear">

        <div id="colLeft">

          <!-- Menu -->
          <%@ include file="../common/menu.jsp" %>

        </div><!-- colLeft -->

<s:form action="/csde/csde401" enctype="multipart/form-data">
<html:hidden property="projectId"       value="${ projectId }" />
<html:hidden property="revision"        value="${ revision }" />
<html:hidden property="workflowId"      value="${ workflowId }"/>
<html:hidden property="contractNumber"  value="${ contractNumber }" />
<html:hidden property="projectName"     value="${ projectName }" />
<html:hidden property="description"     value="${ description }" />

        <div id="colRight">

          <h1><bean:message key="csde401.001" /></h1>

          <c:if test="${ fileList == null }">
          &nbsp;<br/>
          </c:if>
          <c:if test="${ fileList != null }">
          <c:forEach var="eFileList" varStatus="sFileList" items="${ fileList }">
            <fieldset>
              <legend>
              <c:if test="${ eFileList.value1.equals('File set') }">${ f:h(filesetType) }</c:if>
              <c:if test="${ !eFileList.value1.equals('File set') }">${ f:h(eFileList.value1) }</c:if>
              </legend>
              <bean:message key="csde401.002" />&nbsp;<input type="file" name="uploadFiles[${sFileList.index}]" />
              <html:hidden property="workflowIds[${sFileList.index}]" value="${ eFileList.systemId2 }" />
              <html:hidden property="systemId3s[${sFileList.index}]"  value="${ eFileList.systemId3 }" />
            </fieldset>
          </c:forEach>
          </c:if>

          <div class="align_center">
            <input type="button" value="<bean:message key="csde401.003" />" onclick="func_back()" />
            <input type="button" value="<bean:message key="csde401.004" />" onclick="func_Upload()" />
          </div>
          <logic:messagesPresent>
            <div>
              <b><font color="red"><bean:message key="found_error" /></font></b>
              <html:errors />
            </div>
          </logic:messagesPresent>

        </div><!-- colRight -->

        <%@ include file="../common/session.jsp" %>

</s:form>

      </div><!-- maincontents -->

      <!-- footer -->
      <%@ include file="../common/footer.jsp" %>

    </div><!-- container -->

  </div><!-- screenMode -->

</body>

</html>